package pres.liko.iot.blackip.dao;

import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.r2dbc.repository.config.EnableR2dbcRepositories;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import pres.liko.iot.blackip.pojo.Dc3BlackIp;
import reactor.core.publisher.Mono;

/**
 * @ClassName: BlackIpDao
 * @Auther: liko
 * @Description:
 * @Date: 2022/11/4 17:24
 */
@Repository
@EnableR2dbcRepositories
public interface BlackIpDao extends ReactiveCrudRepository<Dc3BlackIp, String> {

    @Query("select id,name from dc3_user where ")
    Mono<Dc3BlackIp> findAllByname(Mono<Dc3BlackIp> blackIp);
}
